import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:get/route_manager.dart';

import '../../pages.dart';



class FrontPage extends StatefulWidget {
  const FrontPage({Key? key}) : super(key: key);

  @override
  State<FrontPage> createState() => _FrontPageState();
}

class _FrontPageState extends State<FrontPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      // backgroundColor:Colors.white,
      appBar: AppBar(
        backgroundColor: Colors.blue,
        elevation: 0,
        centerTitle: true,

        ///返回按钮
        // leading: IconButton(
        //   icon:Icon(CupertinoIcons.back),
        //   onPressed: () {
        //     Get.back();
        //   },
        // ),
        title: Text("综合排盘"),
        // actions: [
        //   Row(
        //     children: [
        //       GestureDetector(
        //         child: Container(
        //           margin:
        //           EdgeInsets.only(right: 8.w, bottom: 12.h, top: 12.w),
        //           child: Text(
        //             "推荐收益",
        //             // style: PageStyle.paText.fourteenwhiteTextStyle,
        //           ),
        //         ),
        //         onTap: () {
        //           // Get.to(tuiguangShouyiPage());
        //           print("点击了推荐收益");
        //         },
        //       )
        //     ],
        //   )
        // ],
      ),
      body: GetBuilder<FrontPageLogic>(
        init: FrontPageLogic(),
        builder: (frontController){
          return Column(
            children: [
              Container(
                margin: EdgeInsets.only(
                    top: 30.h, bottom: 30.h),
                child: Container(
                  width: 110.w,
                  height: 110.h,
                  decoration: const BoxDecoration(
                    image: DecorationImage(
                      image: NetworkImage(
                        "https://yoebao.com/img/logo_256x256.png",
                      ),
                    ),
                    // borderRadius: BorderRadius.circular(15),
                  ),
                ),
              ),
              Container(
                child: Column(
                  children: [
                    frontController.GestureDetectorWidget("四柱八字",Routes.BAZIXUANEZE),
                    SizedBox(height: 30.h,),
                    frontController.GestureDetectorWidget("六爻易数",Routes.PICKERUTILS),
                    SizedBox(height: 30.h,),
                    // GestureDetectorWidget("四柱八字",SplashPage()),
                  ],
                ),
              ),
            ],
          );
        },
      ),
    );
  }
}

